export interface WsMessage {
    type: string;
    payload: any;
    timestamp?: number;
  }
  
  export type MessageHandler = (
    ws: WebSocket,
    message: WsMessage,
    config: ConnectionConfig
  ) => void;